﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Dashboard.Models;

namespace Dashboard.Controllers
{
    public class TimeTagsController : Controller
    {
        public ActionResult Index()
        {
            TimeTag model = TimeTagsManager.Instance.GetTimeTag();
            if (model == null)
            {
                return new HttpNotFoundResult();
            }

            JsonResult result = new JsonResult();
            result.Data = model;
            return result;
        }
    }
}